<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2017/9/8
  Time: 14:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>error</title>
</head>
<body>
<%--<script type="text/javascript" language="javascript">--%>
<%--<% String name=request.getParameter("name");--%>
<%--String pwd=request.getParameter("password");--%>
<%--String code=request.getParameter("inputcode");--%>
<%--if (name==null||name.equals("")||!name.equals(session.getAttribute("name"))){--%>
    <%--out.print("用户名错误或为空！");--%>

    <%--}--%>
    <%--if (pwd==null||pwd.equals("")||!pwd.equals(session.getAttribute("password"))){--%>
    <%--out.print("密码错误或为空！");--%>

    <%--}if ((code==null||code.equals("")||!code.equals(session.getAttribute("inputcode")))){--%>
        <%--out.print("验证码错误或为空!");--%>

    <%--}--%>
    <%--%>--%>
<%--<script type="text/javascript" language="javascript">--%>
    <%--&lt;%&ndash;//alert("用户名"<%=name%>)&ndash;%&gt;--%>
    <%--window.location='index.jsp' ;                            // 跳转到登录界面--%>
<%--</script>--%>
<%--你输入的用户名或密码错误<%out.print(request.getAttribute("name"));%>--%>
<%--<a href="javascript:history.go(-1)">返回</a>--%>
<%
    String errorInfo = (String)request.getAttribute("loginError");         // 获取错误属性
    if(errorInfo!= null) {
%>
<script type="text/javascript" language="javascript">
    alert("<%=errorInfo%>");                                            // 弹出错误信息
    window.location='index.jsp' ;                            // 跳转到登录界面
</script>
<%
    }
%>
</body>
</html>
